import { ApiProperty } from '@nestjs/swagger';
import { Column, Entity } from 'typeorm';
import { BaseEntity } from '../../../base.entity';

@Entity({ name: 'sys_dictionary' })
export default class SysDictionary extends BaseEntity {


  @Column({ type: 'varchar', length: 50, name: 'language_type', comment: '语言' })
  @ApiProperty()
  languageType: string;

  @Column({ type: 'varchar', length: 50, name: 'dictionary_type_code', comment: '字典表编码' })
  @ApiProperty()
  dictionaryTypeCode: string;

  @Column({ type: 'varchar', length: 50, name: 'dictionary_code', comment: '代码' })
  @ApiProperty()
  dictionaryCode: string;

  @Column({ type: 'varchar', length: 50, nullable: true, comment: '扩展字段1' })
  @ApiProperty()
  extend1: string;

  @Column({ type: 'varchar', length: 50, nullable: true, comment: '扩展字段2' })
  @ApiProperty()
  extend2: string;

  @Column({ type: 'varchar', length: 50, name: 'dictionary_name', comment: '名称' })
  @ApiProperty()
  dictionaryName: string;

  @Column({ comment: '排序' })
  @ApiProperty()
  sort: number;

  @Column({ type: 'varchar', nullable: true, comment: '备注' })
  @ApiProperty()
  remark: string;
}
